package form;

import play.api.libs.Crypto;

/**
 * Created with IntelliJ IDEA.
 * User: Tom
 * Date: 9-2-14
 * Time: 17:28
 */
public class EditPassword {

    private String current_password;
    private String new_password;
    private String repeat_new_password;

    public String getCurrent_password() {
        return current_password;
    }

    public void setCurrent_password(String current_password) {
        if (current_password != null && !current_password.equals(""))
            this.current_password = Crypto.encryptAES(current_password);
    }

    public String getNew_password() {
        return new_password;
    }

    public void setNew_password(String new_password) {
        if (new_password != null && !new_password.equals(""))
            this.new_password = Crypto.encryptAES(new_password);
    }

    public String getRepeat_new_password() {
        return repeat_new_password;
    }

    public void setRepeat_new_password(String repeat_new_password) {
        if (repeat_new_password != null && !repeat_new_password.equals(""))
            this.repeat_new_password = Crypto.encryptAES(repeat_new_password);
    }
}
